package com.gaogzhen;

import com.gaogzhen.service.WeatherService;
import com.gaogzhen.service.impl.WeatherServiceImpl;
import org.apache.cxf.jaxws.JaxWsServerFactoryBean;

public class WeatherServer {
    public static void main(String[] args) {
        JaxWsServerFactoryBean factoryBean = new JaxWsServerFactoryBean();
        factoryBean.setServiceClass(WeatherService.class);
        factoryBean.setServiceBean(new WeatherServiceImpl());
        factoryBean.setAddress("http://127.0.0.1:9001/weather");
        factoryBean.create();
        System.out.println("====服务开启===");
    }
}
